Ext.define('Act.view.region.Top',{
  extend : 'Ext.toolbar.Toolbar',
  alias: 'widget.topregion',

  requires : ['Act.lib.ButtonTransparent'],

  height: 36,

  initComponent: function(){

    this.defaults = {
      xtype: 'buttontransparent'
    };

    this.items = [{
      xtype: 'image',
      margin: '15 5 0 10',
      width: 16,
      height: 16,
      src: '/asset/img/logo.png'
    }, {
      xtype: 'label',
      text: 'ActBuilder',
      baseCls: 'index-title'
    }, {
      xtype: 'label',
      text: '(1.0.0)',
      baseCls: 'index-title-ver'
    }, '->', {
      xtype: 'label',
      text: '当前账号:超级管理员',
      margin: '0 5 0 0'
    }, {
      id: 'homepagebutton',
      text: '系统首页',
      action: 'homepage',
      icon: '/asset/img/button/homepage.png'
    }, {
      text: '修改密码',
      icon: '/asset/img/button/resetpassword.png'
    }, {
      text: '退出系统',
      action: 'logout',
      icon: '/asset/img/button/return.png'
    }]

    this.callParent(arguments);
  }

});